import axios from "axios";

const instance = axios.create({
    baseURL:'https://restapi.amap.com/v3',
    timeout:3000,
});

instance.interceptors.response.use(
    (res) => {
        return res.data;
    },
    (error) =>{
        return Promise.reject(error)
    }
)

export default instance;